﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="web_cd.aspx.cs" Inherits="web_cd" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <link href="Content/bootstrap.css" rel="stylesheet" />
    <title>Registrar Nuevo CD</title>
</head>
<body>
    <form id="form1" runat="server" class="form-horizontal">
    <div class="container">
        <fieldset>
            <legend>Gestion de CDs</legend>
            <div class="form-group">
                <div class="col-sm-2">
                    <label for="cboGeneros" class="control-label">Genero</label>
                </div>
                <div class="col-sm-3">
                    <asp:DropDownList ID="cboGeneros" runat="server" CssClass="form-control"></asp:DropDownList>
                </div>
            </div>
            <div class="form-group">
                    <div class="col-sm-2">
                        <label for="txtCodigoCd" class="control-label">Codigo CD:</label>
                    </div>
                    <div class="col-sm-3">
                        <asp:TextBox ID="txtCodigoCd" runat="server" Text="" CssClass="form-control"></asp:TextBox>
                    </div>
            </div>
            <div class="form-group">
                    <div class="col-sm-2">
                        <label for="txtTitulo" class="control-label">Titulo:</label>
                    </div>
                    <div class="col-sm-3">
                        <asp:TextBox ID="txtTitulo" runat="server" Text="" CssClass="form-control"></asp:TextBox>
                    </div>
            </div>
            <div class="form-group">
                    <div class="col-sm-2">
                        <label for="txtPrecioVenta" class="control-label">Precio Venta:</label>
                    </div>  
                    <div class="col-sm-3">
                        <asp:TextBox ID="txtPrecioVenta" runat="server" Text="" CssClass="form-control"></asp:TextBox>
                    </div>
            </div>
            <div class="form-group">
                    <div class="col-sm-2">
                        <label for="cboSelloDiscografico" class="control-label">Sello Discografico:</label>
                    </div>  
                    <div class="col-sm-3">
                        <asp:DropDownList ID="cboSelloDiscografico" runat="server" CssClass="form-control"></asp:DropDownList>
                    </div>
            </div>
            <div class="form-group">
                    <div class="col-sm-2">
                        <label for="txtStock" class="control-label">Stock:</label>
                    </div>  
                    <div class="col-sm-3">
                        <asp:TextBox ID="txtStock" runat="server" Text="" CssClass="form-control"></asp:TextBox>
                    </div>
            </div>
            <div class="form-group">
                    <div class="col-sm-2">
                        <label for="txtFechaPublicacion" class="control-label">Fecha Publicacion:</label>
                    </div>  
                    <div class="col-sm-3">
                        <asp:TextBox ID="txtFechaPublicacion" runat="server" Text="" CssClass="form-control"></asp:TextBox>
                    </div>
            </div>  
            <div class="form-group">
                    <div class="col-sm-2">
                        <label for="txtFechaReposicion" class="control-label">Fecha Reposicion:</label>
                    </div>  
                    <div class="col-sm-3">
                        <asp:TextBox ID="txtFechaReposicion" runat="server" Text="" CssClass="form-control"></asp:TextBox>
                    </div>
            </div>  
            <div class="form-group">
                <div class="col-sm-10 col-sm-offset-2">
                        <asp:Button ID="btnNuevo" OnClick="btnNuevo_Click" runat="server" Text="Nuevo" CssClass="btn btn-sm" />
                        <asp:Button ID="btnAceptar" OnClick="btnAceptar_Click" runat="server" Text="Aceptar" CssClass="btn btn-sm btn-primary" />
                        <asp:Button ID="btnEliminar" runat="server" Text="Eliminar" CssClass="btn btn-sm btn-danger" OnClick="btnEliminar_Click" />
                        <asp:Button ID="btnSalir" runat="server" Text="Salir"  CssClass="btn btn-sm"/>
                    </div>
            </div>         
        </fieldset>
    </div>
         <div class="container">
            <div class="col-sm-10 col-sm-offset-2 table-responsive">
                <asp:GridView ID="gvCD" 
                    OnSelectedIndexChanged="gvCD_SelectedIndexChanged" runat="server"
                     CssClass=" table table-bordered table-condensed" AutoGenerateColumns="False">
                    <Columns>
                        <asp:CommandField ShowSelectButton="True" SelectText="Seleccionar" />
                        <asp:BoundField DataField="CDCodigo" HeaderText="Codigo" />
                        <asp:BoundField DataField="CDTitulo" HeaderText="Titulo" />
                        <asp:BoundField DataField="CDReposicion" DataFormatString="{0:d}" HeaderText="Reposicion" />
                        <asp:BoundField DataField="CDStock" HeaderText="Stock" />
                    </Columns>
                    
                </asp:GridView>
            </div>
        </div>
    </form>
</body>
</html>
